export const usageRate = (balance: number, available: number) => {
  if (!balance || !available || balance === 0) return -1;
  const rate = (1 - available / balance) * 100;
  return Number.isFinite(rate) ? rate : -1;
};
